def get_Card():
    id = input("输入身份证:")
    year = id[6:10]
    month = id[10:12]
    day = id[12:14]
    sex = id[17]
    sex = int(sex)
    if sex % 2:
        sex = '男'
    else:
        sex = '女'
    print("生日：{}年是{}月{}日,性别：{}".format(year, month, day,sex))


get_Card()


